/*
 * @Author: zhw 443844039@qq.com
 * @Date: 2025-08-02 15:26:06
 * @LastEditors: zhw 443844039@qq.com
 * @LastEditTime: 2025-08-05 23:20:28
 * @FilePath: \project\lingyuxx-jxjsdad\ruoyi-ui\src\api\teacherShareCenter\index.js
 * @Description: 分享相关API
 */
import request from '@/utils/request'

// 文档分享List
export function documentShareListApi(query) {
  return request({
    url: '/jsjx/userDocument/shareList',
    method: 'get',
    params: query
  })
};

// 文档分享Add
export function documentShareAddApi(data) {
  return request({
    url: '/jsjx/documentShare',
    method: 'post',
    data
  })
};

// 文档取消分享
export function documentShareCancelApi(data) {
  return request({
    url: `/jsjx/documentShare/${data.wordId}`,
    method: 'delete',
  })
};
